<!-- 签到弹框 -->
<div class="PastBoxBlack display">
    <div class="PastBox">
        <div class="PastTitle">
            <a href="javascript:void(0)" class="close" onclick="javascript:window.close()"></a>
        </div>
        <div class="PastCon">
            <h2>本月累计签到<i><{$signInfo['signMonthTimes']}></i>天，今日积分＋<i><{$signInfo['loginPoint']}></i></h2>
            <h2>你是今天第<i><{$signInfo['todaySignRank']}></i>位和丸子打招呼的哦,喵~</h2>
            <h3>总排名<{$rank}>  ｜  总签到<{$signInfo['signAllTimes']}>天</h3>
            <ul>
                <li class="DateTitle"><span>日</span><span>一</span><span>二</span><span>三</span><span>四</span><span>五</span><span>六</span></li>
                <li class="DateCon"><{for $w=$day[0];$w>0;$w--}><span></span><{/for}><{for $i=1;$i<=$day[1];$i++}><span <{if in_array($i,$signDay)}><{if $i == $today}>class="PastToday" <{if $firstTime == 1}> id="fadeIn" style="display:none";<{/if}><{else}>class="PastOn"<{/if}><{/if}>><{$i}></span><{/for}><{for $d=42;$d>$day[1];$d--}><span></span><{/for}> </li>
                <li class="DateCon"></li>
                <li class="DateCon"></li>
                <li class="DateCon"></li>
                <li class="DateCon"></li>
            </ul>
            <div><a href="<{U('SignLucky/lucky')}>"><img src="<{$preStaticUrl}>Wap/images/luckyDraw.png"></a></div>
        </div>
    </div>
</div>
<script>

    $(document).ready(function(){
        //需要弹出提示时调用该方法即可
        var firstTime = "<{$firstTime}>";
        var signPoint = "<{$signInfo['signPoint']}>";
        var loginPoint = "<{$signInfo['loginPoint']}>";
        var signToast = "<{$signToast}>";

        if(firstTime == 1){
            $(".PastBoxBlack").removeClass("display");
            $("#fadeIn").fadeIn(2000);

            if(signPoint > 0){
                layer.msg("连签奖励，积分+"+signPoint+signToast,{shift:5,offset:$(window).height() * 0.8});
            } else if (loginPoint > 0){
                layer.msg("登录成功，积分+"+loginPoint+signToast,{shift:5,offset:$(window).height() * 0.8});
            } else if(signToast){
                layer.msg(signToast,{shift:5,offset:$(window).height() * 0.8});
            }
        }


        $('.PastBoxBlack').on('touchmove',function(e){e.preventDefault();
            e.stopPropagation();return false; });

        $('.close').click(function(){
            $('.PastBoxBlack').addClass("display");

        });
    });


    $(document).click(function(event){
        if(event.target.className == "PastBoxBlack"){
            $('.PastBoxBlack').addClass("display");
        }
        else{
            event.stopPropagation();
        }
    });


</script>